package com.atguigu.sparkcore.day03

import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}

/**
 * Author atguigu
 * Date 2020/10/30 16:42
 */
object TextDemo {
    def main(args: Array[String]): Unit = {
        val conf: SparkConf = new SparkConf().setAppName("TextDemo").setMaster("local[2]")
        val sc: SparkContext = new SparkContext(conf)
        sc.textFile("c:/input").collect
        sc.stop()
        
    }
}
